package com.scrx.ymg.service.entrepot;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.scrx.ymg.dao.entrepot.ISuperMarketEntrepotDao;
import com.scrx.ymg.dao.supermarket.ISuperMarketDao;
import com.scrx.ymg.entity.AgentInfo;
import com.scrx.ymg.entity.ProductEvaluate;
import com.scrx.ymg.entity.SuperMarketEntrepot;
import com.scrx.ymg.entity.SuperMarketInfo;

@Service("superMarketEntrepotService")
public class SuperMarketEntrepotServiceImpl implements ISuperMarketEntrepotService {
	
	@Autowired
	private ISuperMarketEntrepotDao superMarketEntrepotDao;
	
	public List<SuperMarketEntrepot> getEntrepotByID(String id) {
		
		return superMarketEntrepotDao.getEntrepotByID(id);
	}


	public SuperMarketEntrepot getEntrepotByEntID(String id) {
		
		
		return superMarketEntrepotDao.getEntrepotByEntID(id);
	}



	public List<SuperMarketEntrepot> getHotBySuperId(String superID,int hot) {

		return superMarketEntrepotDao.getHotBySuperId(superID,hot);
	}



	public List<ProductEvaluate> getProductEvaluateByIdAndType(int entrepotId, int typeId) {

		return superMarketEntrepotDao.getProductEvaluateByIdAndType(entrepotId,typeId);
	}




}
